
AM_CPPFLAGS = -I${top_srcdir} -I${top_builddir}

this_includedir=${includedir}/${subdir}
this_include_HEADERS = \
    all.hpp \
    bicgstab.hpp \
    concentrating1dmesher.hpp \
	craigsneydscheme.hpp \
	dividendbarrieroption.hpp \
	douglasscheme.hpp \
	expliciteulerscheme.hpp \
	fd2dblackscholesvanillaengine.hpp \
	fdbatesvanillaengine.hpp \
	fdblackscholesasianengine.hpp \
	fdblackscholesbarrierengine.hpp \
	fdblackscholesrebateengine.hpp \
	fdblackscholesvanillaengine.hpp \
	fdhestonbarrierengine.hpp \
	fdhestonrebateengine.hpp \
	fdhestonvanillaengine.hpp \
	fdhestonhullwhitevanillaengine.hpp \
	fdm1dmesher.hpp \
	fdm2dblackscholesop.hpp \
	fdm2dblackscholessolver.hpp \
    fdmamericanstepcondition.hpp \
    fdmarithmeticaveragecondition.hpp \
    fdmbackwardsolver.hpp \
    fdmbatesop.hpp \
    fdmbatessolver.hpp \
	fdmbermudanstepcondition.hpp \
	fdmblackscholesmesher.hpp \
	fdmblackscholesmultistrikemesher.hpp \
	fdmblackscholesop.hpp \
	fdmblackscholessolver.hpp \
	fdmdirichletboundary.hpp \
	fdmdividendhandler.hpp \
	fdmhestonhullwhiteop.hpp \
	fdmhestonhullwhitesolver.hpp \
	fdmhestonlikesolverfactory.hpp \
	fdmhestonop.hpp \
	fdmhestonsolver.hpp \
	fdmhestonvariancemesher.hpp \
	fdmhullwhitemesher.hpp \
	fdminnervaluecalculator.hpp \
	fdmlinearop.hpp \
	fdmlinearopcomposite.hpp \
	fdmlinearopiterator.hpp \
	fdmlinearoplayout.hpp \
	fdmmesher.hpp \
	fdmmeshercomposite.hpp \
	fdmquantohelper.hpp \
    fdmsimple2dbssolver.hpp \
	fdmsnapshotcondition.hpp \
	fdmstepconditioncomposite.hpp \
	firstderivativeop.hpp \
	hundsdorferscheme.hpp \
	impliciteulerscheme.hpp \
	modifiedcraigsneydscheme.hpp \
	ninepointlinearop.hpp \
	secondderivativeop.hpp \
	secondordermixedderivativeop.hpp \
	sparseilupreconditioner.hpp \
	triplebandlinearop.hpp \
	uniform1dmesher.hpp \
	uniformgridmesher.hpp

libMultiDimFDM_la_SOURCES = \
    bicgstab.cpp \
    concentrating1dmesher.cpp \
	craigsneydscheme.cpp \
	dividendbarrieroption.cpp \
	douglasscheme.cpp \
	expliciteulerscheme.cpp \
	fd2dblackscholesvanillaengine.cpp \
	fdbatesvanillaengine.cpp \
	fdblackscholesasianengine.cpp \
	fdblackscholesbarrierengine.cpp \
	fdblackscholesrebateengine.cpp \
	fdblackscholesvanillaengine.cpp \
	fdhestonbarrierengine.cpp \
	fdhestonrebateengine.cpp \
	fdhestonvanillaengine.cpp \
	fdhestonhullwhitevanillaengine.cpp \
	fdm2dblackscholesop.cpp \
	fdm2dblackscholessolver.cpp \
	fdmamericanstepcondition.cpp \
    fdmarithmeticaveragecondition.cpp \
    fdmbackwardsolver.cpp \
    fdmbatesop.cpp \
    fdmbatessolver.cpp \
	fdmbermudanstepcondition.cpp \
	fdmblackscholesmesher.cpp \
	fdmblackscholesmultistrikemesher.cpp \
	fdmblackscholesop.cpp \
	fdmblackscholessolver.cpp \
	fdmdirichletboundary.cpp \
	fdmdividendhandler.cpp \
	fdmhestonhullwhiteop.cpp \
	fdmhestonhullwhitesolver.cpp \
	fdmhestonlikesolverfactory.cpp \
	fdmhestonop.cpp \
	fdmhestonsolver.cpp \
	fdmhestonvariancemesher.cpp \
	fdmhullwhitemesher.cpp \
	fdminnervaluecalculator.cpp \
	fdmlinearoplayout.cpp \
	fdmmeshercomposite.cpp \
	fdmquantohelper.cpp \
    fdmsimple2dbssolver.cpp \
	fdmsnapshotcondition.cpp \
	fdmstepconditioncomposite.cpp \
	firstderivativeop.cpp \
	hundsdorferscheme.cpp \
	impliciteulerscheme.cpp \
	modifiedcraigsneydscheme.cpp \
	ninepointlinearop.cpp \
	secondderivativeop.cpp \
	secondordermixedderivativeop.cpp \
	sparseilupreconditioner.cpp \
	triplebandlinearop.cpp \
	uniformgridmesher.cpp

noinst_LTLIBRARIES = libMultiDimFDM.la

all.hpp: Makefile.am
	echo "/* This file is automatically generated; do not edit.     */" > $@
	echo "/* Add the files to be included into Makefile.am instead. */" >> $@
	echo >> $@
	for i in $(filter-out all.hpp, $(this_include_HEADERS)); do \
		echo "#include <${subdir}/$$i>" >> $@; \
	done
	echo >> $@
	subdirs='$(SUBDIRS)'; for i in $$subdirs; do \
		echo "#include <${subdir}/$$i/all.hpp>" >> $@; \
	done

